package com.qidian.mes.pojo;


import java.util.Date;


public class Defect {
    private Long defectId;//检测项id
    private String defectCode;//检测项编码
    private String defectName;//检测项描述
    private String defectType;//检测项类型
    private String defectLevel;//缺陷等级
    private String defectRemark;//备注
    private String defectCreateBy;//创建人
    private Date defectCreateTime;//创建时间
    private String defectUpdateBy;//更新人
    private Date defectUpdateTime;//更新时间
    private Long defectCreateTimeMillis;
    private Long defectUpdateTimeMillis;

    public Defect() {
    }

    public Defect(Long defectId, String defectCode, String defectName, String defectType, String defectLevel, String defectRemark, String defectCreateBy, Date defectCreateTime, String defectUpdateBy, Date defectUpdateTime, Long defectCreateTimeMillis, Long defectUpdateTimeMillis) {
        this.defectId = defectId;
        this.defectCode = defectCode;
        this.defectName = defectName;
        this.defectType = defectType;
        this.defectLevel = defectLevel;
        this.defectRemark = defectRemark;
        this.defectCreateBy = defectCreateBy;
        this.defectCreateTime = defectCreateTime;
        this.defectUpdateBy = defectUpdateBy;
        this.defectUpdateTime = defectUpdateTime;
        this.defectCreateTimeMillis = defectCreateTimeMillis;
        this.defectUpdateTimeMillis = defectUpdateTimeMillis;
    }

    public Long getDefectId() {
        return defectId;
    }

    public void setDefectId(Long defectId) {
        this.defectId = defectId;
    }

    public String getDefectCode() {
        return defectCode;
    }

    public void setDefectCode(String defectCode) {
        this.defectCode = defectCode;
    }

    public String getDefectName() {
        return defectName;
    }

    public void setDefectName(String defectName) {
        this.defectName = defectName;
    }

    public String getDefectType() {
        return defectType;
    }

    public void setDefectType(String defectType) {
        this.defectType = defectType;
    }

    public String getDefectLevel() {
        return defectLevel;
    }

    public void setDefectLevel(String defectLevel) {
        this.defectLevel = defectLevel;
    }

    public String getDefectRemark() {
        return defectRemark;
    }

    public void setDefectRemark(String defectRemark) {
        this.defectRemark = defectRemark;
    }

    public String getDefectCreateBy() {
        return defectCreateBy;
    }

    public void setDefectCreateBy(String defectCreateBy) {
        this.defectCreateBy = defectCreateBy;
    }

    public Date getDefectCreateTime() {
        return defectCreateTime;
    }

    public void setDefectCreateTime(Date defectCreateTime) {
        this.defectCreateTime = defectCreateTime;
    }

    public String getDefectUpdateBy() {
        return defectUpdateBy;
    }

    public void setDefectUpdateBy(String defectUpdateBy) {
        this.defectUpdateBy = defectUpdateBy;
    }

    public Date getDefectUpdateTime() {
        return defectUpdateTime;
    }

    public void setDefectUpdateTime(Date defectUpdateTime) {
        this.defectUpdateTime = defectUpdateTime;
    }

    public Long getDefectCreateTimeMillis() {
        if (defectCreateTime != null)
            return this.defectCreateTime.getTime();
        return null;
    }

    public void setDefectCreateTimeMillis(Long defectCreateTimeMillis) {
        this.defectCreateTimeMillis = defectCreateTimeMillis;
    }

    public Long getDefectUpdateTimeMillis() {
        if (defectCreateTime != null)
            return this.defectUpdateTime.getTime();
        return null;
    }

    public void setDefectUpdateTimeMillis(Long defectUpdateTimeMillis) {
        this.defectUpdateTimeMillis = defectUpdateTimeMillis;
    }

    @Override
    public String toString() {
        return "Defect{" +
                "defectId=" + defectId +
                ", defectCode='" + defectCode + '\'' +
                ", defectName='" + defectName + '\'' +
                ", defectType='" + defectType + '\'' +
                ", defectLevel='" + defectLevel + '\'' +
                ", defectRemark='" + defectRemark + '\'' +
                ", defectCreateBy='" + defectCreateBy + '\'' +
                ", defectCreateTime=" + defectCreateTime +
                ", defectUpdateBy='" + defectUpdateBy + '\'' +
                ", defectUpdateTime=" + defectUpdateTime +
                ", defectCreateTimeMillis=" + defectCreateTimeMillis +
                ", defectUpdateTimeMillis=" + defectUpdateTimeMillis +
                '}';
    }
}
